package com.yule.system.home;

import com.yule.system.dao.SystemDeptDao;
import com.yule.system.model.SystemDept;
import com.yule.system.model.SystemDeptExample;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SystemDeptHome {

    @Autowired
    private SystemDeptDao systemDeptDao;

    public SystemDept findOne(int id){
        return systemDeptDao.selectByPrimaryKey(id);
    }

    public List<SystemDept> findList(SystemDeptExample systemDeptExample){
        return systemDeptDao.selectByExample(systemDeptExample);
    }


}
